﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using RedHouse.Data.Service;

namespace RedHouse.Data.Base
{
    public class ServiceBase : IServiceBase
    {
        protected NewRedHouseEntitiesDataContext _dataContext;
        private static ServiceBase _instance;
        public static ServiceBase Instance
        {
            get
            {
                if (_instance == null)
                {
                    _instance = new ServiceBase();
                }
                return Instance;
            }
        }
        public ServiceBase()
        {
            _dataContext = new NewRedHouseEntitiesDataContext();
        }
    }
}
